package com.hxzy.common.enums;

import lombok.Getter;
import lombok.Setter;

/**
 * 日志定义枚举
 */

public enum BusinessType {


    /**
     * 新增
     */
    INSERT(1,"新增"),

    /**
     * 修改
     */
    UPDATE(2,"修改"),

    /**
     * 删除
     */
    DELETE(3,"删除"),

    /**
     * 授权
     */
    GRANT(4,"授权"),

    /**
     * 导出
     */
    EXPORT(5,"导出"),

    /**
     * 导入
     */
    IMPORT(6,"导入"),
    /**
     * 强退
     */
    EXIT(7,"强退"),
    /**
     * 生成代码
     */
    AUTOCODE(8,"生成代码"),
    /**
     * 清空代码
     */
    CLEAR(9,"清空代码");


    private Integer code;
    private String name;

    public Integer getCode() {
        return code;
    }

    BusinessType(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    BusinessType() {
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
